package com.yun.blog.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * title        : Album
 * projectName  : dantouBlog-back
 * description  : 相册
 * author       : simple
 * date         : 2022/11/30下午4:20
 */

@Data
@TableName("blog_album")
public class Album {
    @TableId(type = IdType.AUTO)
    private Integer albumId;
    private String albumName;
    private String albumDescription;
    private String albumCover;

    private Boolean isShow;

    // 照片数量
    @TableField(exist = false)
    private Integer pictureCount;

    @JsonFormat(pattern = "yyyy年MM月dd日 hh:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
